home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / ToolUtils.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  4.0 KB  |  170 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ToolUtils.a
  3. ;
  4. ;    Contains:    Toolbox Utilities Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__TOOLUTILS__') = 'UNDEFINED' THEN
  19. __TOOLUTILS__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  25.     include 'OSUtils.a'
  26.     ENDIF
  27.  
  28.     IF OLDROUTINELOCATIONS THEN
  29.     IF &TYPE('__FIXMATH__') = 'UNDEFINED' THEN
  30.     include 'FixMath.a'
  31.     ENDIF
  32.     IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
  33.     include 'Icons.a'
  34.     ENDIF
  35.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  36.     include 'Quickdraw.a'
  37.     ENDIF
  38.     IF &TYPE('__TEXTUTILS__') = 'UNDEFINED' THEN
  39.     include 'TextUtils.a'
  40.     ENDIF
  41.     ENDIF    ; OLDROUTINELOCATIONS
  42. ;————————————————————————————————————————————————————————————————————————————————————
  43. ;    Note: 
  44. ;    
  45. ;    The following routines that used to be in this header file, have moved to
  46. ;    more appropriate headers.  If OLDROUTINELOCATIONS is 0, then you will have
  47. ;    to include the headers below to use the following functions.
  48. ;    
  49. ;        FixMath.h:        FixMul
  50. ;                        FixRatio
  51. ;                        FixRound
  52. ;        
  53. ;        Icons.h:          GetIcon
  54. ;                        PlotIcon
  55. ;                        
  56. ;        Quickdraw.h:    AngleFromSlope
  57. ;                        DeltaPoint
  58. ;                        GetCursor
  59. ;                        GetIndPattern
  60. ;                        GetPattern
  61. ;                        GetPicture
  62. ;                        PackBits
  63. ;                        ScreenRes
  64. ;                        ShieldCursor
  65. ;                        SlopeFromAngle
  66. ;                        UnpackBits
  67. ;                        
  68. ;        TextUtils.h:    Munger
  69. ;                        GetIndString
  70. ;                        GetString
  71. ;                        NewString
  72. ;                        SetString
  73. ;————————————————————————————————————————————————————————————————————————————————————
  74. ;
  75.  
  76.  
  77.  
  78. ;
  79. ; pascal Boolean BitTst(const void *bytePtr, long bitNum)
  80. ;
  81.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  82.         _BitTst:    OPWORD    $A85D
  83.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  84.         IMPORT_CFM_FUNCTION BitTst
  85.     ENDIF
  86.  
  87. ;
  88. ; pascal void BitSet(void *bytePtr, long bitNum)
  89. ;
  90.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  91.         _BitSet:    OPWORD    $A85E
  92.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  93.         IMPORT_CFM_FUNCTION BitSet
  94.     ENDIF
  95.  
  96. ;
  97. ; pascal void BitClr(void *bytePtr, long bitNum)
  98. ;
  99.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  100.         _BitClr:    OPWORD    $A85F
  101.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  102.         IMPORT_CFM_FUNCTION BitClr
  103.     ENDIF
  104.  
  105. ;
  106. ; pascal long BitAnd(long value1, long value2)
  107. ;
  108.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  109.         _BitAnd:    OPWORD    $A858
  110.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  111.         IMPORT_CFM_FUNCTION BitAnd
  112.     ENDIF
  113.  
  114. ;
  115. ; pascal long BitOr(long value1, long value2)
  116. ;
  117.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  118.         _BitOr:    OPWORD    $A85B
  119.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  120.         IMPORT_CFM_FUNCTION BitOr
  121.     ENDIF
  122.  
  123. ;
  124. ; pascal long BitXor(long value1, long value2)
  125. ;
  126.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  127.         _BitXor:    OPWORD    $A859
  128.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  129.         IMPORT_CFM_FUNCTION BitXor
  130.     ENDIF
  131.  
  132. ;
  133. ; pascal long BitNot(long value)
  134. ;
  135.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  136.         _BitNot:    OPWORD    $A85A
  137.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  138.         IMPORT_CFM_FUNCTION BitNot
  139.     ENDIF
  140.  
  141. ;
  142. ; pascal long BitShift(long value, short count)
  143. ;
  144.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  145.         _BitShift:    OPWORD    $A85C
  146.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  147.         IMPORT_CFM_FUNCTION BitShift
  148.     ENDIF
  149.  
  150.     IF TARGET_CPU_68K THEN
  151. Int64Bit                RECORD 0
  152. hiLong                     ds.l    1                ; offset: $0 (0)
  153. loLong                     ds.l    1                ; offset: $4 (4)
  154. sizeof                     EQU *                    ; size:   $8 (8)
  155.                         ENDR
  156. ;
  157. ; pascal void LongMul(long a, long b, Int64Bit *result)
  158. ;
  159.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  160.         _LongMul:    OPWORD    $A867
  161.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  162.         IMPORT_CFM_FUNCTION LongMul
  163.     ENDIF
  164.  
  165.     ENDIF    ; TARGET_CPU_68K
  166.  
  167.     ENDIF ; __TOOLUTILS__ 
  168.  
  169.